
<template>
  <div style="width: 100px;height: 100px">


    <!-- Form -->
    <el-button type="text" @click="dialogFormVisible = true"> Dialog</el-button>

    <el-dialog title="评价" :visible.sync="dialogFormVisible">
      <div class="block">
        <span class="demonstration">请为本次项目评分</span>
        <el-rate
          v-model="value2"
          :colors="colors">
        </el-rate>
      </div>
      <div slot="footer" class="dialog-footer">
        <el-button @click="dialogFormVisible = false">取 消</el-button>
        <el-button type="primary" @click="hh">确 定</el-button>
      </div>
    </el-dialog>
  </div>
</template>
    <script>
      export default {
        data() {
          return {
            value2: null,
            colors: ['#99A9BF', '#F7BA2A', '#FF9900'],
            dialogFormVisible: false,
            form: {
              name: '',
              region: '',
              date1: '',
              date2: '',
              delivery: false,
              type: [],
              resource: '',
              desc: ''
            },
            formLabelWidth: '120px'
          };
        },
        methods:{

          hh(){


              var id=27
            axios.post('/company/WorkroomGrade',{
             id :id,
             grade:this.value2
            }).then((response) => {
              if(response.data!=""){


                // let ee=response.data
                //
                // this.teamData=ee
                //
                //
                // console.log(this.teamData)
                // var user= JSON.parse(window.sessionStorage.getItem("user"));
                // var jj=user.role
                //
                // if(jj.includes("workroom")){
                //   this.ff=true
                //
                // }
                // var e=response.data
                // this.projectName=e.projectName
                // this.lable=e.lable
                // this.price=e.price
                // this.style=e.style
                // this.introduce=e.introduce
                // this.projectDoc=e.projectDoc
                // this.photoUrl=e.photoUrl
                // var a=e.timeLimit
                // var b= a.split("T")
                // this.timeLimit=b[0]





              }
              else{
                // this.$notify.error({
                //   title: '项目未被找到',
                //   message: response.data.message,
                //   type: 'warning',
                //   duration:0
                // });
              }

            }).catch((response)=>{
              this.$notify.error({
                title: '',
                message: '错误'
              });
            })






            this. dialogFormVisible = false


          }

        },
      };
    </script>








